package org.jeecg.modules.dock.entity.mes.request;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * mes请求柱料实体
 *
 * @author zhoutong
 */
@ApiModel(value = "mes请求通用实体", description = "mes请求通用实体")
@Data
public class MesBaseZLRequestVO implements Serializable {

    @NotNull
    @NotBlank
    @ApiModelProperty("任务编号，原任务")
    private String taskCode;

    @NotNull
    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN, timezone = "GMT+8")
    @DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    @ApiModelProperty("状态变更时间，精确到秒即可")
    private Date operateTime;

    @NotNull
    @NotBlank
    @ApiModelProperty("任务类型")
    private String taskType;

    @ApiModelProperty("任务状态：参考下方业务类型说明")
    private String taskStatus;

    @ApiModelProperty("站点")
    private String site;

    @ApiModelProperty("操作原因")
    private String operateReason;

    @ApiModelProperty("操作人员")
    private String operatorName;

    @ApiModelProperty("产线名称")
    private String lineName;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("传输数据")
    private Object details;

}
